package com.momoback.feign;


import com.momoback.config.FeignClientConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "wechat-client", url = "https://api.weixin.qq.com", configuration = {FeignClientConfig.class})
public interface OpenFeignWXClient {
    @GetMapping(value = "/sns/jscode2session",consumes = "application/json")
    Object getOpenId(@RequestParam("appId") String appId,@RequestParam("secret") String secret,@RequestParam("js_code") String js_code,@RequestParam("grant_type") String grant_type);

}
